﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="lstLogMuaHang.ascx.cs" Inherits="Web.Cms.Log_MuaHang.lstLogMuaHang" %>

<script type="text/javascript">
    $(function () {
        $("#<%=txtDatefrom.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
        $("#<%=txtDateTo.ClientID %>").datepicker({ showOn: 'button', buttonImage: '/images/calendar_1.gif', buttonImageOnly: true });
    });
</script>
<%@ Register TagPrefix="uc1" TagName="PagingAjax" Src="~/Cms/AjaxCP/Paging.ascx" %>

<div style="padding-bottom: 20px;" class="fl">
    <p class="heading" style="margin-left:400px; ">DANH SÁCH MUA HÀNG</p>          
</div>
<br />
<div style="clear:both;"><asp:Label Font-Bold="true" ForeColor="red" Font-Size="11px" ID="lblMessage" runat="server"></asp:Label></div>
<table width="800px" align="center" style="margin-left:250px">
    <tr>
        <td class="style1">
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td class="style1">
            <strong>Từ ngày(yy/mm/dd):</strong></td>
        <td>
            <asp:TextBox ID="txtDatefrom" runat="server" Height="20px"></asp:TextBox>
            </td>
        <td class="style1">
            <strong>Đến ngày:</strong></td>
        <td>
            <asp:TextBox ID="txtDateTo" runat="server" Height="20px"></asp:TextBox>
            </td>
        <td>
            <asp:Button runat="server" ID="btnTimKiem" CssClass="Button_Search" onclick="btnTimKiem_Click" 
                /></td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
    </tr>
</table>

<br />


<asp:GridView ID="grdDanhSachMuaHang" runat="server" BackColor="White" AutoGenerateColumns="False"
 Width="100%" BorderColor="Gainsboro"
	BorderStyle="Solid" BorderWidth="1px" CellPadding="4" CssClass="Grid" 
    onrowcommand="grdDanhSachMuaHang_RowCommand" onrowdatabound="grdDanhSachMuaHang_RowDataBound" 
       >
	<AlternatingRowStyle CssClass="labe_content_02" />
	<RowStyle CssClass="labe_content_01" />
	<HeaderStyle CssClass="labe_Caption" Font-Bold="True" HorizontalAlign="Center" />
    <Columns>               
         <asp:BoundField HeaderText="STT" />
         <asp:TemplateField HeaderText="LOG_ID">
         <ItemTemplate><%#Eval("LogId")%></ItemTemplate>
         </asp:TemplateField>
        <asp:TemplateField  HeaderText="NGÀY MUA">            
            <ItemTemplate><%#Eval("CreateDate")%></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField  HeaderText="EMAIL KHÁCH HÀNG">            
            <ItemTemplate><%#Eval("Email")%></ItemTemplate>
        </asp:TemplateField>
        
         <asp:TemplateField HeaderText="IP">
         <ItemTemplate><%#Eval("IP")%></ItemTemplate>
         </asp:TemplateField>
        <asp:TemplateField HeaderText="Xóa" HeaderStyle-Width="20">
            <ItemTemplate>             
                <asp:Button ID="btnDelete" runat="server" CssClass="Icon_Delete" CommandArgument='<%# Eval("LogId") %>' CommandName="Commanddelete" OnClientClick="return confirm('Bạn có chắc chắn xóa không ?')" />                   
            </ItemTemplate>

<HeaderStyle Width="20px"></HeaderStyle>
        </asp:TemplateField>
    </Columns>
</asp:GridView>


<table cellspacing="0" cellpadding="0" border="0" width="100%">       
    <tr>
        <td colspan="4" align="center" style="height: 21px">
            <br />            
            <uc1:PagingAjax ID="PagingAjax1" runat="server" />            
            <br />
        </td>
    </tr>
</table>